const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  roles: state => state.user.roles,
  permission_routers: state => state.permission.routers,
  addRouters: state => state.permission.addRouters,
  menu: state => state.user.menu,
  importData:function(state){
  	if(!state.batchImport.importData.uploadUrl){
  		state.batchImport.importData = JSON.parse(localStorage.getItem("importData"));
  	};
  	return state.batchImport.importData;
  }
}

export default getters
